@extends('layouts.admin')

@section('indicatebox')
    @parent
    <img class="zhishibg" src="/images/manager/zhishibg.png">
    <a href="">{{ $title }}</a>
@endsection


@section('admincontents')
    <li class="usermodbox">
        <div class="usermod-title">
            <span class="usermod-text"><i class="fa fa-key"></i>&nbsp;修改密码</span>
        </div>
        <form class="usermod-table" method="post" action="{{ route('Passworld_update_store') }}">
            @csrf
            @method('PUT')
            <style type="text/css">.success{ color: #0aad2e;}.danger{color: #bd2130}</style>
            <div>
                @if(count($errors)>0)
                    @foreach($errors->all() as $error)
                        <p style="color: #bd2130">{{ $error }}</p>
                    @endforeach
                @endif

                @foreach(['success','danger'] as $message)
                    @if(session()->has($message))
                        <p class="{{$message}}">{{ session()->get($message) }}</p>
                    @endif
                @endforeach
            </div><br />
            <input name="id" class="user-nickname" type="hidden" value="{{ auth()->user()->id }}" />
            <div>
                旧 &nbsp;的 &nbsp;&nbsp;密 &nbsp;码：
                <input name="passwordo" class="user-nickname" value="{{ old('passwordo') }}" type="password" autocomplete="off"/>
            </div><br />
            <div>
                新 &nbsp;的 &nbsp;&nbsp;密 &nbsp;码：
                <input name="password" class="user-nickname" type="password" value="" autocomplete="off"/>
            </div><br />
            <div>
                重复新的密码：
                <input name="password_confirmation" class="user-nickname" type="password" value="" autocomplete="off"/>
            </div>
            <div style="margin-top:15px;padding-left: 82px;">
                <input class="submit" name="passwordupd" type="submit" value="提 交" />
                <input class="reset" type="reset" value="重 置" />
            </div>
        </form>
    </li>
@endsection